<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue v-html 指令</title>
</head>
<body>
<div id="app">
    <div  v-text="msg"></div>
    <div  v-html="msg"></div>

    <div  v-text="info"></div>
    <div  v-html="info"></div>

</div>
</body>
<script type="module">

    import { createApp, ref } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
    const app = createApp({
        setup(){
            let msg = "<h1>Hello, Vue!</html>"
            let info = "ABCDEFG"

            return {msg,info}
        }
    })

    app.mount("#app")
</script>
</html>